import os

import pandas as pd
import matplotlib.pyplot as plt

pd.set_option('display.float_format', lambda x: '%.2f' % x)
pd.set_option('mode.chained_assignment', None)

# 解决绘图中显示中文的问题
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False

ANALYSIS_CONFIGS = {
    'debt-lie': 'asset_fraud_analysis.json',
    'debt-quality': 'asset_quality_analysis.json',
    'debt-effect': 'asset_indepth_analysis.json',
    'benefit': 'profit_analysis.json',
    'cash': 'cash_flow_analysis.json',
    'all': 'all_analysis.json'
}

TYPE_DEBT = 'debt'
TYPE_BENEFIT = 'benefit'
TYPE_CASH = 'cash'
INI_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'ini_files')